<tagLib name="myhtml" />
<include file="../Public/header" />
<SCRIPT LANGUAGE="JavaScript">
<!--

function outkeyseting(id){ //设定外键
	//location.href  = URL+"/outkeyseting/id/"+id;
	var jslink=URL+"/outkey/id/"+id;
	PopModalWindow(jslink,'700','400');
}


function setissystem(id){ //系统保留的参数
	PopModalWindow(URL+"/setissystem/id/"+id,'600','300');
}


function copyselect(){ //拷贝本表生成新数据表
	PopModalWindow('__URL__/copyselect/pid/{$_GET['pid']}','600','300');
}

//-->
 </SCRIPT>
<!-- 主体内容  -->
<style type="text/css">
.dynamic-tab-pane-control .tab-page {
	height:		100%;
}

</style>

<fieldset >
	<legend><a href="__APP__/Sys_tables/index/pid/{$projectid}" title="返回项目总列表"><font class="blue" >{$projectname}</font></a> >> <font class="blue" title="当前数据表的数据结构">{$tablename}[{$titlename}]</font></legend>

<!--  功能操作区域  -->
<table width="100%"   cellpadding=0 cellspacing=0 >
	<tr>
		<td width="70%">
	<input type="button" onclick="location.href='__URL__/index/pid/{$_GET['pid']}'" class="button1" value="刷新">
	<input type="button" onclick="del()" class="btn_red" value="删除数据">
	<input type="button" class="button1" onclick="upbtn();" value="更新数据">

	<input type="button" onclick="PopModalWindow('__URL__/add/pid/{$_GET['pid']}','700','400');" class="btn_small" value="增加数据">
	<input type="button" onclick="PopModalWindow('__URL__/table/id/{$_GET['pid']}','700','400');" class="btn_small" value="查看表信息">
	<input type="button" onclick="PopModalWindow('__URL__/sort/pid/{$_GET['pid']}','700','400');" class="btn_small" value="排序数据">
		</td>
		<td align="left">
		<DIV  id="myMenuID"></DIV>
      <script language="JavaScript" type="text/javascript">
      var myMenu =
      [
	      ['▼','本数据表高级操作列表',null,null,'高级操作列表',
		      ['+', '删除本数据表', '__APP__/Sys_tables/delete/id/{$_GET['pid']}', null,'删除本数据表'],
		      ['+', '拷贝本表生成新数据表', 'javascript:copyselect();', null, '拷贝本表生成新数据表'],
		      ['+', '基于本数据表生成视图', '', null, '基于本数据表生成视图'],
		      ['+', '检查本数据表合理性', '', null, '检查本数据表合理性'],
		      ['+', '生成本表程序', '__URL__/buidetable/pid/{$_GET['pid']}', 'blank', '生成本表程序'],
	      ],
      ];
      cmDraw ('myMenuID', myMenu, 'hbr', cmThemeOffice, 'ThemeOffice');
		</script>
		</td>
		<td align="right" >


			<table width="100%" cellpadding=0 cellspacing=0>
			<tr >
			<td align="right" id="linkpage">{$page}</td>
			</tr>
			</table>

		</td>
	</tr>
</table>

<!-- 功能操作区域结束 -->
</fieldset>
<fieldset>

<form name="form_update" id="form_update" method="POST">
<!-- 列表显示区域  -->
<div class="tab-pane" id="tabPane1">



  <div class="tab-page" id="tabPage10">
		<h2 class="tab">系统自定义数据表</h2>
		<myhtml:editlist id="checkList" name="list"  checkbox="true"  datasource="list" style="list"
		show="
			id|hidden|1:ID,
			caption|12:标题,
			name|8:表名[英文],
			fieldtype|select|makeselect('fieldtype[]'#'sub_fieldtype'#$list['fieldtype']):字段属性,
			fieldlenght|4:字段长度,
			seqNo|1:排序,
			issystem|select|makeselect('issystem[]'#'sub_issystem'#$list['issystem']):系统保留
		"
		action="false"
		actionlist="setissystem:设定保留信息"
		/>

</div>
  <div class="tab-page" id="tabPage3" >
		<h2 class="tab">基本操作和默认值设定</h2>
		<myhtml:editlist id="checkList2" name="list"   datasource="list_val" style="list"
		show="
			caption|text:标题,
			isview|checkbox:详细[是否显示在详细信息],
			viewtype|select|makeselect('viewtype[]'#'sub_viewtype'#$list['viewtype']):详细信息类型,
			isedit|checkbox:编辑[是否显示在编辑信息],
			edittype|select|makeselect('edittype[]'#'sub_edittype'#$list['edittype']):编辑形式,
			isadd|checkbox:增加[是否显示在增加信息],
			addtype|select|makeselect('addtype[]'#'sub_addtype'#$list['addtype']):增加形式,
			indexvar|10:默认值[支持函数],
			autotype|select|makeselect('autotype[]'#'Sub_auto'#$list['autotype']):自动填充

		"
		/>
</div>

  <div class="tab-page" id="tabPage1">
		<h2 class="tab">LIST设定</h2>
		<myhtml:editlist id="checkList2" name="list"    datasource="list_genneral" style="list"
		show="
			caption|text:标题,
			islist|checkbox:列表[是否显示在列表],
			islistviewtype|select|makeselect('islistviewtype[]'#'sub_viewtype'#$list['islistviewtype']):列表查看类型,
			islistwidth|4:列表长度,
			iswrap|checkbox:排序[是否需要排序筛选]

		"
		/>
</div>
  <div class="tab-page" id="tabPage2" >
		<h2 class="tab">系统验证设定</h2>
		<myhtml:editlist id="checkList2" name="list"  datasource="list_val" style="list"
		show="
			caption|text:标题,

			request|checkbox:必填[是否为必填项],
			validate|select|makeselect('validate[]'#'sub_validate'#$list['validate']):验证形式,
			validate_tex|40:错误提示[不填为默认],
			validate_reg|40:自定义正则验证
		"
		/>
</div>

<div class="tab-page" id="tabPage4">
		<h2 class="tab">搜索设定</h2>
		<myhtml:editlist id="checkList2" name="list"   datasource="list_search" style="list"
		show="
			caption|text:标题,
			issearch|checkbox:搜索[是否需要搜索功能],
			searchtype|select|makeselect('searchtype[]'#'sub_searchtype'#$list['searchtype']):一般搜索形式,
			advsearchtype|select|makeselect('advsearchtype[]'#'sub_searchtype'#$list['advsearchtype']):高级搜索形式
		"
		/>
</div>
<div class="tab-page" id="tabPage5">
		<h2 class="tab">当前外键属性</h2>
		<myhtml:editlist id="checkList2" name="list"   datasource="list_outkey" style="list"
		show="
			caption|text:标题,

			outkeyis|checkbox:是否[外键],
			outkey|8:外键表,
			outkeyid|6:外键表ID,
			outkeyf|40:外键表栏目,
			outkeywhere|20:外键表过滤条件
		"
		action="false"
		actionlist="outkeyseting:快速设定"
		/>
</div>

<input type="hidden" name="pid" value="{$_REQUEST['pid']}">


</form>
</fieldset>
<script type="text/javascript">
//用户了最新的方法,但最新的方法必为以"tab"为前的CSS
setupAllTabs();
</script>


<include file="../Public/footer" />
